package com.xsmart.order.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 运费模板
 */
@Component
public interface ShippingTempletDao {
    @Select("select a.* from shipping_templet_attr a\n" +
            "left join shipping_templet t\n" +
            "  on t.shipping_templet_id=a.shipping_templet_id\n" +
            "where t.seller_shopinfo_id=#{sellerId}")
    List<Map<String,Object>> getShippingTempletBySellerId(@Param("sellerId") Integer sellerId);
}
